package cn.edu.hunau.utils;

/**
 * @Author 苏佳
 * @Date 2022 10 23 17 11
 **/
public enum ResultCodeEnum {
    SUCCESS(true,200200,"success"),
    UNKOWN_ERROR(false,404500,"未知异常"),
    USERNAME_HAS_EXISTS(false,400201,"用户名重复"),
    USER_HASNOT_LOGIN(false,400404,"用户没有登录"),
    USER_HASNOT_INPUT(false,400403,"用户输入为空");
    private Boolean flag;
    private String message;
    private Integer code;

    ResultCodeEnum(boolean flag,  Integer code,String message) {
        this.flag = flag;
        this.message = message;
        this.code = code;
    }

    public Boolean getFlag() {
        return flag;
    }

    public void setFlag(Boolean flag) {
        this.flag = flag;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
